package java69.work722.CarManager;

/**
 * 汽车
 */
public abstract class Automobile {

    private String num;//车牌号
    private String brand;//品牌
    private double rent;//日租金
    private boolean store;//是否在库

    public Automobile() {
    }

    public Automobile(String num, String brand, double rent,boolean store) {
        this.num = num;
        this.brand = brand;
        this.rent = rent;
        this.store = store;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getRent() {
        return rent;
    }

    public void setRent(double rent) {
        this.rent = rent;
    }


    public boolean isStore() {
        return store;
    }

    public void setStore(boolean store) {
        this.store = store;
    }

    public abstract void sum(String num, int days);

}
